package com.itheima.Service.impl;

import com.itheima.Dao.UserDao;
import com.itheima.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

public class UserServiceimpl {
    //依赖注入dao
    @Autowired
    private UserDao userDao;
    public List<User> findAll(){
        List<User> all=userDao.findAll();
        return all;
    }
}
